<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
  <head>
    <title>user_list</title>
  </head>
  
  <body>
   <div align="center">
   	 <table border="1" bordercolor="black" bgcolor="silver" > 
  <tr><td>编号</td><td>用户名</td><td>密码</td><td>操作</td></tr>
    <s:iterator value="userList">
    <tr>
    <td>${id}</td>
    <td>${username}</td>
    <td>${password}</td>
    <td><a href='<s:url action="editUser"><s:param name="uid" value="uid" /></s:url>'>修改</a>&nbsp;
    <a onclick="return confirm('确定要删除吗？');" href='<s:url action="delUser"><s:param name="uid" value="uid" /></s:url>'>删除</a></td>
    </tr>
    </s:iterator>
  </table>
	<p>
   	 <a href='<s:url action="beforeAddUser" />' >增加用户</a>
    </p>
    </div>
  </body>
</html>
